<template>
  <view class="home">
   <Custom ref="sonMethod"></Custom>
    <News></News>
    <Swiper></Swiper>
    <listCell>
      <template>
        <Hot></Hot>
      </template>
    </listCell>
    <listCell title="近期活动">
      <template>
        <Active></Active>
      </template>
    </listCell>
  </view>
</template>

<script>
import Custom from "./components/custom";
import News from "./components/news";
import Swiper from "./components/Swiper";
import listCell from "@/components/listCell";
import Hot from "./components/hot";
import Active from "./components/active";
export default {
  components: {
    Custom,
    News,
    Swiper,
    listCell,
    Hot,
    Active,
  },
  data() {
    return {};
  },
  onLoad() {},
  onShow() {
    setTimeout(() => {
      this.refreshMoudles();
    }, 100);
  },
  methods: {
    refreshMoudles() {
      this.$refs.sonMethod.refreshMoudles();
    },
  },
};
</script>

<style lang="scss" scoped>
.home {
}
</style>
